package com.woniuxy.project115.kaer.tenant.util;

/**
 * @author HuH
 * @version 1.0
 * @CreatTime 2024-11-18 17:32
 * @description
 */
public class RedisKey {
    public static String REGISTER_CODE_PHONE(String phone) {
        return "register:code:phone:" + phone;
    }

    public static String REGISTER_CODE_STATE(String phone) {
        return "register:code:state:" + phone;
    }

    public static String LOGIN_CODE_PHONE(String phone) {
        return "login:code:phone:" + phone;
    }

    public static String LOGIN_CODE_STATE(String phone) {
        return "login:code:state:" + phone;
    }

    public static String ACCESS_EXPIRE(String accessToken) {
        return "access:expire:" + accessToken;
    }

    public static String ACCESS_REFRESH(String accessToken) {
        return "access:refresh:" + accessToken;
    }

    public static String CACHE_TYPE_TREE() {
        return "cache:type:tree";
    }

}
